//当添加Icon样式的时候，需要更新index.html的iconfont样式。
const menuIcon = {
    home: 'icon-shujuguanli', //主页
    analysis: 'icon-shujufenxi', //数据分析
    intelligent: 'icon-ChatGPT-blue', //Ai答疑
    userManager: 'icon-yonghuzhongxin', //用户管理
    integralStore: 'icon-shangdian', // 积分商店
    dataManager:'icon-a-0_shujuguanli',
}

//供左侧导航栏使用，渲染导航栏
const menuRouter = [
    {name: '首页', url: '/home', iconFontClass: menuIcon.home},
    {name: '智能分析', url: '/dataAnalysis', iconFontClass: menuIcon.analysis,
        child: [
            {name: '智能分析（同步）', url: '/dataAnalysis/sync'},
            {name: '智能分析（异步）', url: '/dataAnalysis/async'}
        ]},
    {name: 'AI答疑', url: '/IntelligentIndex', iconFontClass: menuIcon.intelligent,},
    {
        name: '数据管理', url: '/chartIndex', iconFontClass: menuIcon.dataManager,
        child: [
            {name: '图表列表', url: '/chartIndex/chartManage'},
            {name: '文件列表', url: '/chartIndex/responseManage'}
        ]
    },
    {
        name: '用户中心', url: '/userIndex', iconFontClass: menuIcon.userManager,
        child: [
            {name: '用户列表', url: '/userIndex/userList'},
            {name: '用户设置', url: '/userIndex/userInfo'}
        ]
    },
    {name: '积分商店', url: '/integral', iconFontClass: menuIcon.integralStore}
]

export default menuRouter;